package org.ManagerSystem.DTO;

//用来封装登录相关信息的类
public class LoginResult {

    //登录是否成功
    private boolean isLogin;
    //登录信息
    private String result;

    //登录成功的时候调用
    public LoginResult(boolean isLogin) {
        this.setLogin(isLogin);
    }

    //登录失败的时候调用
    public LoginResult(boolean isLogin, String result) {
        this.setLogin(isLogin);
        this.setResult(result);
    }


    public boolean isLogin() {
        return isLogin;
    }

    public void setLogin(boolean login) {
        isLogin = login;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    @Override
    public String toString() {
        return "LoginResult{" +
                "isLogin=" + isLogin +
                ", result='" + result + '\'' +
                '}';
    }
}
